package temp.lho.lws.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import temp.lho.lws.mapper.IAccidentMapper;
import temp.lho.lws.mapper.IBaseMapper;
import temp.lho.lws.service.IAccidentService;
import temp.lho.lws.vo.Accident;

import java.util.List;
@Service("accidentService")
public class AccidentServiceImpl extends BaseServiceImpl<Accident> implements IAccidentService {

    @Autowired
    private IAccidentMapper accidentMapper;

    @Override
    public List<Accident> selectAll() {
        return accidentMapper.selectAll();
    }

    @Override
    public List<Accident> select() {
        return accidentMapper.select();
    }

    @Override
    protected IBaseMapper<Accident> baseMapper() {
        return accidentMapper;
    }
}
